<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../../static/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../static/css/admin.css" media="all">
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header" style="border-radius: 0;border-top: 4px solid #d2d2d2;">
        </div>
        <div class="layui-form layui-card-body layuiadmin-card-header-auto" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin">
            <div class="layui-form-item layui-input-inline">
                <label class="layui-form-label">部门名称</label>
                <div class="layui-input-inline">
                    <input type="text" name="dept_short_name" lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item layui-input-inline">
                <label class="layui-form-label">招聘类型</label>
                <div class="layui-input-inline">
                    <select name="recruit_type">
                        <option value="社会招聘">社会招聘</option>
                        <option value="校园招聘">校园招聘</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item layui-input-inline">
                <label class="layui-form-label">招聘人数</label>
                <div class="layui-input-inline">
                    <input type="text" name="recruit_number" lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item layui-input-inline">
                <label class="layui-form-label">职位名称</label>
                <div class="layui-input-inline">
                    <input type="text" name="job_name" lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item layui-input-inline">
                <label class="layui-form-label">职位编码</label>
                <div class="layui-input-inline">
                    <input type="text" name="job_id" lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item layui-input-inline">
                <label class="layui-form-label">职位分类</label>
                <div class="layui-input-inline">
                    <input type="text" name="job_type" lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item layui-input-inline">
                <label class="layui-form-label">登记人</label>
                <div class="layui-input-inline">
                    <input type="text" name="resolution" lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item layui-input-inline">
                <label class="layui-form-label">登记时间</label>
                <div class="layui-input-inline">
                    <input type="text" name="regist_time" lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>
            <!--    <div class="layui-form-item layui-input-inline">
                    <label class="layui-form-label">截止时间</label>
                    <div class="layui-input-inline">
                        <input type="text" name="deadLine" lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>-->
            <div class="layui-form-item layui-inline" style="margin-top: 10px">
                <div class="layui-inline">
                    <label class="layui-form-label">截止日期</label>
                    <div class="layui-input-inline">
                        <input type="text" name="deadline" class="layui-input" id="test1" placeholder="yyyy-MM-dd">
                    </div>
                </div>
            </div>
            <!--    <div class="layui-form-item layui-input-inline">
                    <label class="layui-form-label">职位描述</label>
                    <div class="layui-input-inline">
                        <input type="text" name="description" lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>-->
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">职位描述</label>
                <div class="layui-input-block" style="width: 820px">
                    <textarea name="description" placeholder="请输入内容" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">招聘要求</label>
                <div class="layui-input-block" style="width: 820px">
                    <textarea name="require" placeholder="请输入内容" class="layui-textarea"></textarea>
                </div>
            </div>
            <!--    <div class="layui-form-item layui-input-inline">
                    <label class="layui-form-label">招聘要求</label>
                    <div class="layui-input-inline">
                        <input type="text" name="require" lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>-->
            <div class="layui-form-item layui-hide">
                <!--        <input type="button" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-front-submit" value="发布">
                        <input type="button"  value="返回">-->
                <button type="submit" class="layui-btn" lay-submit lay-filter="LAY-user-front-submit" style="margin-right: 30px">发布</button>
            </div>
        </div>
    </div>
</div>

<!--<script src="js/jquery-2.0.3.min.js"></script>-->
<script src="../../../static/layui/layui.js"></script>
<script type="text/javascript">
    // 日期格式转换函数
    function formatDate(str) {
        if(str != null){
            var now = new Date(str);
            var year = now.getFullYear();  //取得4位数的年份
            var month = now.getMonth() + 1;  //取得日期中的月份，其中0表示1月，11表示12月
            var date = now.getDate();      //返回日期月份中的天数（1到31）
            return year + "-" + month + "-" + date;
        }
        return "";
    }
</script>
<script type="text/javascript">

    layui.use(['layer','table','form','element','util','laydate'], function(){
        var $ = layui.$
            ,form = layui.form
            ,layer = layui.layer
            ,table = layui.table
            ,element = layui.element
            ,util = layui.util
            ,laydate = layui.laydate;
        //事件
        var active = {
            /*            batchdel: function(){
                            var checkStatus = table.checkStatus('LAY-user-manage')
                                ,checkData = checkStatus.data; //得到选中的数据

                            if(checkData.length == 0){
                                return layer.msg('请选择数据');
                            }

                            // 程序走到这里，表示已经有选中要删除的数据了。
                            layer.confirm('确定删除吗？',function (){
                                //真实删除，应该和后端结合 ajax
                                var empnos = new Array();
                                $.each(checkData,function (index,item){
                                    // 向数组对象中添加元素
                                    empnos.push(item.empno);
                                })
                                $.ajax({
                                    url:"/emp/batchdel",
                                    type:"post",
                                    data:{empnos:empnos},
                                    traditional:true,
                                    dataType:"json",
                                    success:function (res){
                                        if(res.code == 0){//成功
                                            layer.msg(res.msg);//弹出提示
                                            table.reload('LAY-user-manage'); //数据刷新
                                        }
                                        if(res.code == -1){//系统出问题
                                            layer.msg(res.msg,{icon: 5});//弹出提示
                                        }
                                    }
                                })
                            })
                        }
                        add: function(){
                            window.location.href = "addJobPost.html"
                        }*/
            back: function(){
                window.location.href = "job_post.html"
            }
        };

        $('.layui-btn.layuiadmin-btn-useradmin').on('click', function(){
            var type = $(this).data('type');
            active[type] ? active[type].call(this) : '';
        });
    });
</script>
</body>
</html>